// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_QC_SOLUTION_ITEM
// * CreateDate    : 2014-06-05 18:30:31
// * Creater       : CodeSmith
// * LastChangeDate: 2014-06-05 18:30:31
// * LastChanger   : 2014-06-05 18:30:31
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;
using ESOL.Common;

namespace ESOL.Common.Entity
{
    [DataContract]
	[Serializable]
	public partial class QcSolutionItemEntity : EntityBase
    {
        public QcSolutionItemTable TableSchema
        {
            get
            {
                return QcSolutionItemTable.Current;
            }
		}
		
		public QcSolutionItemEntity()
        {

        }
		
		public QcSolutionItemEntity(DataRow dr)
        {
			if(dr == null)
			{
				return;
			}
			this.QcItemId = Convert.ToString(CommonFunctions.ToObject(dr["QC_ITEM_ID"]));
			this.QcSolutionId = Convert.ToString(CommonFunctions.ToObject(dr["QC_SOLUTION_ID"]));
			this.QcItemName = Convert.ToString(CommonFunctions.ToObject(dr["QC_ITEM_NAME"]));
			this.QcItemCode = Convert.ToString(CommonFunctions.ToObject(dr["QC_ITEM_CODE"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
        }
		
		public QcSolutionItemEntity(DataRowView dr)
        {
			if(dr == null)
			{
				return;
			}
			this.QcItemId = Convert.ToString(CommonFunctions.ToObject(dr["QC_ITEM_ID"]));
			this.QcSolutionId = Convert.ToString(CommonFunctions.ToObject(dr["QC_SOLUTION_ID"]));
			this.QcItemName = Convert.ToString(CommonFunctions.ToObject(dr["QC_ITEM_NAME"]));
			this.QcItemCode = Convert.ToString(CommonFunctions.ToObject(dr["QC_ITEM_CODE"]));
			this.Description = Convert.ToString(CommonFunctions.ToObject(dr["DESCRIPTION"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return QcSolutionItemTable.Current;
            }
        }
		
		#region Perporty List
        [DataMember]
        public string QcItemId
        {
            get { return Convert.ToString(GetData(QcSolutionItemTable.C_QC_ITEM_ID)); }
            set { SetData(QcSolutionItemTable.C_QC_ITEM_ID, value); }
        }
		
        [DataMember]
        public string QcSolutionId
        {
            get { return Convert.ToString(GetData(QcSolutionItemTable.C_QC_SOLUTION_ID)); }
            set { SetData(QcSolutionItemTable.C_QC_SOLUTION_ID, value); }
        }
		
        [DataMember]
        public string QcItemName
        {
            get { return Convert.ToString(GetData(QcSolutionItemTable.C_QC_ITEM_NAME)); }
            set { SetData(QcSolutionItemTable.C_QC_ITEM_NAME, value); }
        }
		
        [DataMember]
        public string QcItemCode
        {
            get { return Convert.ToString(GetData(QcSolutionItemTable.C_QC_ITEM_CODE)); }
            set { SetData(QcSolutionItemTable.C_QC_ITEM_CODE, value); }
        }
		
        [DataMember]
        public string Description
        {
            get { return Convert.ToString(GetData(QcSolutionItemTable.C_DESCRIPTION)); }
            set { SetData(QcSolutionItemTable.C_DESCRIPTION, value); }
        }
		
		#endregion
	}
	
	
}	

